package com.danbay.cloud.device.entity.electricmeter;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import scala.Int;

import java.util.Date;

/**
 * 电表计费规则记录表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_em_fee_rule")
public class EmFeeRule {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 计费规则名称
     */
    private String title;

    /**
     * 电费单价
     */
    private Integer price;

    /**
     * 计费方式：1单间；2套间；3单间+公摊；4套间+公摊
     */
    private Integer feeWay;

    /**
     * 关联账号ID
     */
    private String userName;

    /**
     * 电表链路方式 0(并联) 1(串联)
     */
    private Integer linkWay;

    private Integer del;

    private Date addTime;
}
